//--ZZProfIt--
/**********************************************************************
  The MIT License (MIT)
  Copyright (c) 2012 sunriseyuen

  Permission is hereby granted, free of charge, to any person obtaining
  a copy of this software and associated documentation files
  (the "Software"), to deal in the Software without restriction,
  including without limitation the rights to use, copy, modify, merge,
  publish, distribute, sublicense, and/or sell copies of the Software,
  and to permit persons to whom the Software is furnished to do so,
  subject to the following conditions:

  The above copyright notice and this permission notice shall be included
  in all copies or substantial portions of the Software.

  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
  THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 ***********************************************************************/
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;

using Dot.StreamObject;

namespace Muki.Entity
{
	[Serializable]
		[AttributeMapping(TableName="CUSITEM")]
		public class CUSITEMEntity: EntityObject
		{


#region Field
				private	string _BAR_CODE="";
				private	decimal _CRTN_AMT=0;
				private	DateTime _CRTN_DATE=DateTime.MinValue;
				private	decimal _CRTN_QTY=0;
				private	decimal _CRTN_RATE=0;
				private	string _CUS_CODE="";
				private	string _CUS_ITEM="";
				private	decimal _DISC_RATE=0;
				private	string _EAN_CODE="";
				private	string _ITEM_NAME1="";
				private	string _ITEM_NAME2="";
				private	string _ITEM_NAME3="";
				private	string _ITEM_NAME4="";
				private	string _ITEM_NO="";
				private	decimal _MADJ_RATE=0;
				private	string _REGN_CODE="";
				private	decimal _RTAL_PRICE=0;
				private	decimal _SALE_BPRICE=0;
				private	string _SALE_CCY="";
				private	decimal _SALE_UPRICE=0;
				private	string _STD_CCY="";
				private	decimal _STD_UPRICE=0;
				private	string _UOM_CODE="";
				private	string _UPC_CODE="";
				private	DateTime _ZADD_DATE=DateTime.MinValue;
				private	string _ZADD_USER="";
				private	DateTime _ZCHG_DATE=DateTime.MinValue;
				private	string _ZCHG_FLAG="";
				private	string _ZCHG_USER="";
				private	string _ZSECURITY_CODE1="";
				private	string _ZSECURITY_CODE2="";
				private	string _ZSECURITY_CODE3="";
				private	string _ZSECURITY_CODE4="";
				private	string _ZSECURITY_CODE5="";
				private	string _ZSECURITY_CODE6="";
				private	Int32 _ZSECURITY_RIGHT=0;
#endregion

#region Properties
				//<Summary>
				//CUSITEM,BAR_CODE
				//</Summary>
				public string BAR_CODE
				{
					get { return _BAR_CODE; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_BAR_CODE)
							{
								_BAR_CODE = value; 
								this.PropertyChange("BAR_CODE");
							}
						}else{
							_BAR_CODE = value; 
						}
					}
				}
				//<Summary>
				//CUSITEM,CRTN_AMT
				//</Summary>
				public decimal CRTN_AMT
				{
					get { return _CRTN_AMT; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_CRTN_AMT)
							{
								_CRTN_AMT = value; 
								this.PropertyChange("CRTN_AMT");
							}
						}else{
							_CRTN_AMT = value; 
						}
					}
				}
				//<Summary>
				//CUSITEM,CRTN_DATE
				//</Summary>
				public DateTime CRTN_DATE
				{
					get { return _CRTN_DATE; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_CRTN_DATE)
							{
								_CRTN_DATE = value; 
								this.PropertyChange("CRTN_DATE");
							}
						}else{
							_CRTN_DATE = value; 
						}
					}
				}
				//<Summary>
				//CUSITEM,CRTN_QTY
				//</Summary>
				public decimal CRTN_QTY
				{
					get { return _CRTN_QTY; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_CRTN_QTY)
							{
								_CRTN_QTY = value; 
								this.PropertyChange("CRTN_QTY");
							}
						}else{
							_CRTN_QTY = value; 
						}
					}
				}
				//<Summary>
				//CUSITEM,CRTN_RATE
				//</Summary>
				public decimal CRTN_RATE
				{
					get { return _CRTN_RATE; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_CRTN_RATE)
							{
								_CRTN_RATE = value; 
								this.PropertyChange("CRTN_RATE");
							}
						}else{
							_CRTN_RATE = value; 
						}
					}
				}
				//<Summary>
				//CUSITEM,CUS_CODE
				//</Summary>
					[AttributeMapping(PrimaryKey=true)]
				public string CUS_CODE
				{
					get { return _CUS_CODE; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_CUS_CODE)
							{
								_CUS_CODE = value; 
								this.PropertyChange("CUS_CODE");
							}
						}else{
							_CUS_CODE = value; 
						}
					}
				}
				//<Summary>
				//CUSITEM,CUS_ITEM
				//</Summary>
					[AttributeMapping(PrimaryKey=true)]
				public string CUS_ITEM
				{
					get { return _CUS_ITEM; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_CUS_ITEM)
							{
								_CUS_ITEM = value; 
								this.PropertyChange("CUS_ITEM");
							}
						}else{
							_CUS_ITEM = value; 
						}
					}
				}
				//<Summary>
				//CUSITEM,DISC_RATE
				//</Summary>
				public decimal DISC_RATE
				{
					get { return _DISC_RATE; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_DISC_RATE)
							{
								_DISC_RATE = value; 
								this.PropertyChange("DISC_RATE");
							}
						}else{
							_DISC_RATE = value; 
						}
					}
				}
				//<Summary>
				//CUSITEM,EAN_CODE
				//</Summary>
				public string EAN_CODE
				{
					get { return _EAN_CODE; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_EAN_CODE)
							{
								_EAN_CODE = value; 
								this.PropertyChange("EAN_CODE");
							}
						}else{
							_EAN_CODE = value; 
						}
					}
				}
				//<Summary>
				//CUSITEM,ITEM_NAME1
				//</Summary>
				public string ITEM_NAME1
				{
					get { return _ITEM_NAME1; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ITEM_NAME1)
							{
								_ITEM_NAME1 = value; 
								this.PropertyChange("ITEM_NAME1");
							}
						}else{
							_ITEM_NAME1 = value; 
						}
					}
				}
				//<Summary>
				//CUSITEM,ITEM_NAME2
				//</Summary>
				public string ITEM_NAME2
				{
					get { return _ITEM_NAME2; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ITEM_NAME2)
							{
								_ITEM_NAME2 = value; 
								this.PropertyChange("ITEM_NAME2");
							}
						}else{
							_ITEM_NAME2 = value; 
						}
					}
				}
				//<Summary>
				//CUSITEM,ITEM_NAME3
				//</Summary>
				public string ITEM_NAME3
				{
					get { return _ITEM_NAME3; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ITEM_NAME3)
							{
								_ITEM_NAME3 = value; 
								this.PropertyChange("ITEM_NAME3");
							}
						}else{
							_ITEM_NAME3 = value; 
						}
					}
				}
				//<Summary>
				//CUSITEM,ITEM_NAME4
				//</Summary>
				public string ITEM_NAME4
				{
					get { return _ITEM_NAME4; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ITEM_NAME4)
							{
								_ITEM_NAME4 = value; 
								this.PropertyChange("ITEM_NAME4");
							}
						}else{
							_ITEM_NAME4 = value; 
						}
					}
				}
				//<Summary>
				//CUSITEM,ITEM_NO
				//</Summary>
					[AttributeMapping(PrimaryKey=true)]
				public string ITEM_NO
				{
					get { return _ITEM_NO; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ITEM_NO)
							{
								_ITEM_NO = value; 
								this.PropertyChange("ITEM_NO");
							}
						}else{
							_ITEM_NO = value; 
						}
					}
				}
				//<Summary>
				//CUSITEM,MADJ_RATE
				//</Summary>
				public decimal MADJ_RATE
				{
					get { return _MADJ_RATE; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_MADJ_RATE)
							{
								_MADJ_RATE = value; 
								this.PropertyChange("MADJ_RATE");
							}
						}else{
							_MADJ_RATE = value; 
						}
					}
				}
				//<Summary>
				//CUSITEM,REGN_CODE
				//</Summary>
				public string REGN_CODE
				{
					get { return _REGN_CODE; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_REGN_CODE)
							{
								_REGN_CODE = value; 
								this.PropertyChange("REGN_CODE");
							}
						}else{
							_REGN_CODE = value; 
						}
					}
				}
				//<Summary>
				//CUSITEM,RTAL_PRICE
				//</Summary>
				public decimal RTAL_PRICE
				{
					get { return _RTAL_PRICE; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_RTAL_PRICE)
							{
								_RTAL_PRICE = value; 
								this.PropertyChange("RTAL_PRICE");
							}
						}else{
							_RTAL_PRICE = value; 
						}
					}
				}
				//<Summary>
				//CUSITEM,SALE_BPRICE
				//</Summary>
				public decimal SALE_BPRICE
				{
					get { return _SALE_BPRICE; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_SALE_BPRICE)
							{
								_SALE_BPRICE = value; 
								this.PropertyChange("SALE_BPRICE");
							}
						}else{
							_SALE_BPRICE = value; 
						}
					}
				}
				//<Summary>
				//CUSITEM,SALE_CCY
				//</Summary>
				public string SALE_CCY
				{
					get { return _SALE_CCY; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_SALE_CCY)
							{
								_SALE_CCY = value; 
								this.PropertyChange("SALE_CCY");
							}
						}else{
							_SALE_CCY = value; 
						}
					}
				}
				//<Summary>
				//CUSITEM,SALE_UPRICE
				//</Summary>
				public decimal SALE_UPRICE
				{
					get { return _SALE_UPRICE; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_SALE_UPRICE)
							{
								_SALE_UPRICE = value; 
								this.PropertyChange("SALE_UPRICE");
							}
						}else{
							_SALE_UPRICE = value; 
						}
					}
				}
				//<Summary>
				//CUSITEM,STD_CCY
				//</Summary>
				public string STD_CCY
				{
					get { return _STD_CCY; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_STD_CCY)
							{
								_STD_CCY = value; 
								this.PropertyChange("STD_CCY");
							}
						}else{
							_STD_CCY = value; 
						}
					}
				}
				//<Summary>
				//CUSITEM,STD_UPRICE
				//</Summary>
				public decimal STD_UPRICE
				{
					get { return _STD_UPRICE; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_STD_UPRICE)
							{
								_STD_UPRICE = value; 
								this.PropertyChange("STD_UPRICE");
							}
						}else{
							_STD_UPRICE = value; 
						}
					}
				}
				//<Summary>
				//CUSITEM,UOM_CODE
				//</Summary>
				public string UOM_CODE
				{
					get { return _UOM_CODE; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_UOM_CODE)
							{
								_UOM_CODE = value; 
								this.PropertyChange("UOM_CODE");
							}
						}else{
							_UOM_CODE = value; 
						}
					}
				}
				//<Summary>
				//CUSITEM,UPC_CODE
				//</Summary>
				public string UPC_CODE
				{
					get { return _UPC_CODE; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_UPC_CODE)
							{
								_UPC_CODE = value; 
								this.PropertyChange("UPC_CODE");
							}
						}else{
							_UPC_CODE = value; 
						}
					}
				}
				//<Summary>
				//CUSITEM,ZADD_DATE
				//</Summary>
				public DateTime ZADD_DATE
				{
					get { return _ZADD_DATE; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ZADD_DATE)
							{
								_ZADD_DATE = value; 
								this.PropertyChange("ZADD_DATE");
							}
						}else{
							_ZADD_DATE = value; 
						}
					}
				}
				//<Summary>
				//CUSITEM,ZADD_USER
				//</Summary>
				public string ZADD_USER
				{
					get { return _ZADD_USER; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ZADD_USER)
							{
								_ZADD_USER = value; 
								this.PropertyChange("ZADD_USER");
							}
						}else{
							_ZADD_USER = value; 
						}
					}
				}
				//<Summary>
				//CUSITEM,ZCHG_DATE
				//</Summary>
				public DateTime ZCHG_DATE
				{
					get { return _ZCHG_DATE; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ZCHG_DATE)
							{
								_ZCHG_DATE = value; 
								this.PropertyChange("ZCHG_DATE");
							}
						}else{
							_ZCHG_DATE = value; 
						}
					}
				}
				//<Summary>
				//CUSITEM,ZCHG_FLAG
				//</Summary>
				public string ZCHG_FLAG
				{
					get { return _ZCHG_FLAG; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ZCHG_FLAG)
							{
								_ZCHG_FLAG = value; 
								this.PropertyChange("ZCHG_FLAG");
							}
						}else{
							_ZCHG_FLAG = value; 
						}
					}
				}
				//<Summary>
				//CUSITEM,ZCHG_USER
				//</Summary>
				public string ZCHG_USER
				{
					get { return _ZCHG_USER; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ZCHG_USER)
							{
								_ZCHG_USER = value; 
								this.PropertyChange("ZCHG_USER");
							}
						}else{
							_ZCHG_USER = value; 
						}
					}
				}
				//<Summary>
				//CUSITEM,ZSECURITY_CODE1
				//</Summary>
				public string ZSECURITY_CODE1
				{
					get { return _ZSECURITY_CODE1; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ZSECURITY_CODE1)
							{
								_ZSECURITY_CODE1 = value; 
								this.PropertyChange("ZSECURITY_CODE1");
							}
						}else{
							_ZSECURITY_CODE1 = value; 
						}
					}
				}
				//<Summary>
				//CUSITEM,ZSECURITY_CODE2
				//</Summary>
				public string ZSECURITY_CODE2
				{
					get { return _ZSECURITY_CODE2; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ZSECURITY_CODE2)
							{
								_ZSECURITY_CODE2 = value; 
								this.PropertyChange("ZSECURITY_CODE2");
							}
						}else{
							_ZSECURITY_CODE2 = value; 
						}
					}
				}
				//<Summary>
				//CUSITEM,ZSECURITY_CODE3
				//</Summary>
				public string ZSECURITY_CODE3
				{
					get { return _ZSECURITY_CODE3; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ZSECURITY_CODE3)
							{
								_ZSECURITY_CODE3 = value; 
								this.PropertyChange("ZSECURITY_CODE3");
							}
						}else{
							_ZSECURITY_CODE3 = value; 
						}
					}
				}
				//<Summary>
				//CUSITEM,ZSECURITY_CODE4
				//</Summary>
				public string ZSECURITY_CODE4
				{
					get { return _ZSECURITY_CODE4; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ZSECURITY_CODE4)
							{
								_ZSECURITY_CODE4 = value; 
								this.PropertyChange("ZSECURITY_CODE4");
							}
						}else{
							_ZSECURITY_CODE4 = value; 
						}
					}
				}
				//<Summary>
				//CUSITEM,ZSECURITY_CODE5
				//</Summary>
				public string ZSECURITY_CODE5
				{
					get { return _ZSECURITY_CODE5; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ZSECURITY_CODE5)
							{
								_ZSECURITY_CODE5 = value; 
								this.PropertyChange("ZSECURITY_CODE5");
							}
						}else{
							_ZSECURITY_CODE5 = value; 
						}
					}
				}
				//<Summary>
				//CUSITEM,ZSECURITY_CODE6
				//</Summary>
				public string ZSECURITY_CODE6
				{
					get { return _ZSECURITY_CODE6; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ZSECURITY_CODE6)
							{
								_ZSECURITY_CODE6 = value; 
								this.PropertyChange("ZSECURITY_CODE6");
							}
						}else{
							_ZSECURITY_CODE6 = value; 
						}
					}
				}
				//<Summary>
				//CUSITEM,ZSECURITY_RIGHT
				//</Summary>
				public Int32 ZSECURITY_RIGHT
				{
					get { return _ZSECURITY_RIGHT; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ZSECURITY_RIGHT)
							{
								_ZSECURITY_RIGHT = value; 
								this.PropertyChange("ZSECURITY_RIGHT");
							}
						}else{
							_ZSECURITY_RIGHT = value; 
						}
					}
				}
#endregion
		}
}
